package com.lizard.schedule.persistence.db.bean;

/**
 * 需要下载的文件信息
 */
public class DownloadFileInfo {

    private int _id;

    /**
     * 下载路径
     */
    private String url;

    /**
     * 文件长度
     */
    private int fileLength = 0;

    /**
     * 保存路径
     */
    private String savePath;

    /**
     * 下载线程数
     */
    private int threadCount;

    /**
     * 是否支持断点续传
     */
    private boolean supportRanges;

    public int get_id() {
        return _id;
    }

    public void set_id(int _id) {
        this._id = _id;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public int getFileLength() {
        return fileLength;
    }

    public void setFileLength(int fileLength) {
        this.fileLength = fileLength;
    }

    public String getSavePath() {
        return savePath;
    }

    public void setSavePath(String savePath) {
        this.savePath = savePath;
    }

    public int getThreadCount() {
        return threadCount;
    }

    public void setThreadCount(int threadCount) {
        this.threadCount = threadCount;
    }

    public boolean isSupportRanges() {
        return supportRanges;
    }

    public void setSupportRanges(boolean supportRanges) {
        this.supportRanges = supportRanges;
    }
}
